package com.cyou.dream.configuration;

import com.cyou.dream.define.EConditionType;
import lombok.Data;

import java.util.List;

/**
 * 策略配置
 */
@Data
public class StrategyConfig {

    /**
     * 策略ID，全局唯一，取个有辨识度的名字即可
     */
    private String strategyId;

    /**
     * 策略描述
     */
    private String description;

    /**
     * 策略判断条件，当前支持AND和OR两种运算符
     *
     * @see EConditionType
     */
    private EConditionType conditionType;

    /**
     * 规则列表
     */
    private List<RuleConfig> rules;

}
